<?php


namespace App\Lib\sms;


abstract class AbsService
{
    /**
     * 减掉基数,防止 bitmap 空间浪费
     * @param $uid
     * @return int
     */
    protected static function getNewUID($uid){
        return $uid - 7654320;
    }

    protected static function generator($len){
        for ($i = 0; $i < $len; $i++) {
            yield $i;
        }
    }
}
